<section class="grid_12">
    <div class="block-border">
        <form action="<?php echo $this->path('status'); ?>" method="post" id="table_form" class="block-content form" onsubmit="return status(this);">
            <h1>
                Reserva
               <a href="javascript:;" onClick="dialog('<?php echo $this->baseUrl('admin/reserva/form'); ?>');">
                    <img width="16" height="16" src="<?php echo $this->baseUrl('public/images/admin/icons/fugue/plus-circle-blue.png'); ?>"> 
                    Novo
                </a>
            </h1>

            <div class="no-margin last-child">

                <table width="100%" cellspacing="0" class="table sortable no-margin">
                    <thead>
                        <tr>
                            <th class="black-cell sorting_disabled" style="width: 17px;">
                                <span class="success"></span>
                            </th>
                            <th scope="col" style="width: 351px;" class="sorting">
                                <span class="column-sort">
                                    <a class="sort-up" title="Sort up" href="#"></a>
                                    <a class="sort-down" title="Sort down" href="#"></a>
                                </span>
                                Nome
                            </th>
                            <th scope="col" style="width: 351px;" class="sorting">
                                <span class="column-sort">
                                    <a class="sort-up" title="Sort up" href="#"></a>
                                    <a class="sort-down" title="Sort down" href="#"></a>
                                </span>
                                Destino 
                            </th>
                            <th class="table-actions sorting_disabled" scope="col" style="width: 80px;">A&ccedil;&otilde;es</th>
                        </tr>
                    </thead>

                    <tbody>
                        <?php foreach ($this->rows as $row) : ?>
                            <tr class="<?php echo $this->cycle(array('odd', 'even'))->next(); ?>">
                                <td class="th table-check-cell sorting_1">&nbsp;</td>
                                <td><?php echo $row->res_nome; ?></td>
                                <td><?php echo $row->res_destino; ?></td>
                                <td class="table-actions" style="width: 80px;">
                                    <a class="with-tip" title="Editar" href="javascript:;" onclick="dialog('<?php echo $this->path('edit/id/'), $row->res_id; ?>');">
                                        <img width="16" height="16" src="<?php echo $this->baseUrl('public/images/admin/icons/fugue/pencil.png'); ?>">
                                    </a>
                                    <a class="with-tip" title="Remover" href="javascript:;" onclick="remove(this, '<?php echo $this->path('remove') ?>', <?php echo $row->res_id; ?>);">
                                        <img width="16" height="16" src="<?php echo $this->baseUrl('public/images/admin/icons/fugue/cross-circle.png'); ?>">
                                    </a>
                                </td>
                            </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>

            </div>
        </form>
    </div>
</section>